import request from '@/utils/request'

// 查询商品信息列表
export function listInfo(query) {
  return request({
    url: '/group/booking/list',
    method: 'get',
    params: query
  })
}

export function findAllUserId(data) {
  return request({
    url:'/group/booking/findAllUserId',
    method: 'get',
    data: "data"
  })
}

// 查询商品信息详细
export function getInfo(productId) {
  return request({
    url: '/group/booking/getInfo/' + productId,
    method: 'get'
  })
}

// 新增商品信息
export function addInfo(data) {
  return request({
    url: '/group/booking/add',
    method: 'post',
    data: data
  })
}

// 修改商品信息
export function updateInfo(data) {
  return request({
    url: '/group/booking/edit',
    method: 'put',
    data: data
  })
}

// 删除商品信息
export function delInfo(productId) {
  return request({
    url: '/group/booking/remove/' + productId,
    method: 'delete'
  })
}

// 导出商品信息
export function exportInfo(query) {
  return request({
    url: '/group/booking/export',
    method: 'get',
    params: query
  })
}
